var webpack = require('webpack');
var baseConf = require("./base.conf.js");
var merge = require("webpack-merge");

var devConf = {
    output:{
        filename: "[name].js?v=[hash]",
        chunkFilename: "[name].[id].c.js?v=[chunkhash]",
        path: "/dev/scripts/",
        // 设置到html的目录
        publicPath:"/scripts/"
    },
    watch: true,
    devtool: 'inline-source-map',
    plugins:[
        new webpack.HotModuleReplacementPlugin(),
        new webpack.NoErrorsPlugin(),
        new webpack.OldWatchingPlugin()
    ]
};


module.exports = merge(baseConf, devConf)